package com.example.client.client;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: TestController
 * @Description: TODO
 * @Author: YangGuisen
 * @Date: 2018/7/12 16:59
 * @Version: 1.0
 */
@RestController
public class TestController {

    Logger logger = LoggerFactory.getLogger(TestController.class);
    @RequestMapping("/hi")
    public  String test(@RequestParam String  name ){
        logger.info("client recived message : {}",name);
        return  "client say : hi :  hello world !"+name;
    }

}
